//
//  GRSearchTextField.h
//  YC_GRice
//
//  Created by LiuFeng on 2018/7/14.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol GRSearchTextFieldDelegate <NSObject>

@optional
- (void)didClickedSearchButton:(UITextField *)textField;

- (BOOL)searchTextFieldShouldBeginEditing:(UITextField *)textField;

- (void)searchTextDidChange:(UITextField *)textField;

@end

@interface GRSearchTextField : UIView

@property (nonatomic, copy) NSString *text;

@property (nonatomic, copy) NSString *placeholder;

@property (nonatomic, weak) id <GRSearchTextFieldDelegate> delegate;

- (BOOL)resignFirstResponder;

@end
